﻿#pragma once

#include "../../MirControls/MirImageControl.h"
#include "../../MirControls/MirItemCell.h"
#include "../../MirControls/MirButton.h"
#include "../../../Shared/Enums.h"
#include "../../../Shared/Data/ItemData.h"
#include <vector>

using namespace Client::MirControls;
using namespace Client::MirGraphics;
using namespace Client::MirSounds;

namespace Client::MirScenes::Dialogs
{
    class SocketDialog final : public MirImageControl
    {
    public:
        std::vector<MirItemCell*> Grid;
        MirButton *CloseButton;

        virtual ~SocketDialog()
        {
            delete CloseButton;
        }

        SocketDialog();

    private:
        void BindGrid();

    public:
        MirItemCell *GetCell(unsigned long long id);

        void Hide() override;

        void Show(MirGridType grid, UserItem *item);
    };

}
